package com.ljf.order.VO;

/**
 * @Author: Ljf
 * @Date : 2019/1/31 21:32
 * @Description :
 */
public class ResultVOUtil {
    public static ResultVO success(Object o) {
        ResultVO resultVO = new ResultVO();
        resultVO.setMsg("成功");
        resultVO.setCode(0);
        resultVO.setData(o);
        return resultVO;
    }
    public static ResultVO success() {
        return success();
    }

    public static ResultVO error(Integer code,String msg) {
        ResultVO resultVO = new ResultVO();
        resultVO.setMsg(msg);
        resultVO.setCode(code);
        return resultVO;
    }
}
